<?php

use Illuminate\Routing\Router;
//header("Content-Security-Policy: upgrade-insecure-requests");
Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('user', UserController::class);
    $router->resource('type', TypeController::class);
    $router->resource('video', VideoController::class);
    $router->resource('banner', BannerController::class);
    $router->resource('decode', DecodeController::class);
    $router->resource('comments', CommentController::class);
    $router->resource('collections', CollectionContollrer::class);
    $router->resource('seeks', SeekController::class);

    $router->any('gather', 'GatherController@gather');
    $router->get('aa','GatherController@aa');


});
